package test;

import org.springframework.context.annotation.Bean;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.inject.Inject;
import javax.inject.Named;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class Main {
//    public static void main(String[] args) {
//        ApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
//       new  ClassPathXmlApplicationContext();
//        System.out.println(context.getBean("entity"));
//    }

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("springTest.xml");
        context.start();
        System.out.println(11);
//        ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
//        beanFactory.ignoreDependencyInterface(A.class);
//        context.refresh();
        //System.out.println(((AImpl)context.getBean(AImpl.class)).e);

    }

}
